package com.oocl.processdData.pojo;

public class Customer implements Comparable<Customer>{
	
	private int id;
	private String name;
	private String email;
	private String sex;
	private String birthday;
	
	public Customer() {
	}
	
	
	
	public Customer(int id, String name, String email, String sex, String birthday) {
		super();
		this.id = id;
		this.name = name;
		this.email = email;
		this.sex = sex;
		this.birthday = birthday;
	}



	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getBirthday() {
		return birthday;
	}
	public void setBirthday(String birthday) {
		this.birthday = birthday;
	}

	@Override
	public String toString() {
		return "\t\t"+id+"\t\t"+name+"\t\t"+email+"\t\t"+sex+"\t\t"+birthday;
	}



	@Override
	public int compareTo(Customer o) {
		return this.birthday.compareTo(o.getBirthday());
	}
	
}
